package indi.kider.server.apartment.service.related;

import indi.kider.common.model.apabus.Rent;
import indi.kider.common.model.apabus.RentOutline;
import indi.kider.common.model.apabus.RentVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import pers.vankid.common.model.base.CommonResponse;

@FeignClient(value = "apabus")
public interface ApabusService {

    @PostMapping("/apartbus/rentOutline")
    CommonResponse<RentOutline> enterpriseRent(@RequestBody RentOutline rentOutline);

    @GetMapping("/apartbus/rent/house/{id}")
    CommonResponse<Rent> getRentByHouseId(@PathVariable(value = "id")  Long id);

    @PostMapping("/apartbus/rentHouseForImport")
    CommonResponse<Rent> rentHouseForImport(@RequestBody RentVo rentvo);

}
